﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LotteryVote.Logic.Exceptions
{
    /// <summary>
    /// 存在同名用户
    /// </summary>
    public class SameNameUserException : Exception
    {
        public string UserName { get; set; }

        public SameNameUserException(string userName) : this(userName, "该用户已存在!") { }
        public SameNameUserException(string userName, string message)
            : base(message)
        {
            this.UserName = userName;
        }
        public SameNameUserException(string userName, string message, Exception innerException)
            : base(message, innerException)
        {
            this.UserName = userName;
        }
    }
}
